package cn.darkhorse.ticket.production.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 工单管理
 * </p>
 *
 * @author maoguanjun
 * @since 2024-01-30
 */
@Getter
@Setter
  @TableName("ticket_info")
@ApiModel(value = "TicketInfo对象", description = "工单管理")
public class TicketInfo implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键")
        @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("工单编号")
      private String code;

      @ApiModelProperty("是否自动生成 0否 1是")
      private Boolean isAutomatically;

      @ApiModelProperty("工单来源0生产计划1手动添加")
      private Integer source;

      @ApiModelProperty("工单名称")
      private String name;

      @ApiModelProperty("计划Id")
      private Long planId;

      @ApiModelProperty("产品Id")
      private Long productId;
      @ApiModelProperty("产品编码")
      private String productCode;
      @ApiModelProperty("客户Id")
      private Long customerId;

      @ApiModelProperty("计划数量")
      private Integer planNum;

      @ApiModelProperty("系统创建时间")
      private LocalDateTime gmtCreate;

      @ApiModelProperty("系统更新时间")
      private LocalDateTime gmtModified;

      @ApiModelProperty("创建人")
      private Long creator;

      @ApiModelProperty("修改人")
      private Long modifier;

      @ApiModelProperty("计划交期")
      private LocalDateTime planedDeliveryDate;

      @ApiModelProperty("计划生产开始时间")
      private LocalDateTime planedStartTime;

      @ApiModelProperty("计划生产结束时间")
      private LocalDateTime planedEndTime;

      @ApiModelProperty("实际生产开始时间")
      private LocalDateTime realStartTime;

      @ApiModelProperty("实际生产结束时间")
      private LocalDateTime realEndTime;

      @ApiModelProperty("备注")
      private String remark;

      @ApiModelProperty("工单状态 0未开始1进行中2已结束3已取消")
      private Integer status;


}
